export const state = () => ({
  list: [],
  isSearch: false,
  isLoading: false
})
export const mutations = {
  setVideo(state, list) {
    if (list.length === 0) {
      state.list = []
      return;
    }
    state.list = JSON.parse(JSON.stringify(list))
    // state.list = Object.assign([], state.list, list)
  },
  addVideo(state, list) {
    state.list.push(...list)
  },
  setSearch(state, flag) {
    state.isSearch = flag
  }
}
export const actions = ({state}) => ({})
